home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_i.lzh / intuition / cghooks.i next >
Text File  |  1991-03-14  |  2KB  |  67 lines

  1.     IFND INTUITION_CGHOOKS_I
  2. INTUITION_CGHOOKS_I SET 1
  3. **
  4. ** $Filename: intuition/cghooks.i $
  5. ** $Release: 2.04 $
  6. ** $Revision: 36.3 $
  7. ** $Date: 91/02/05 $
  8. **
  9. **  Custom gadget processing
  10. **
  11. **  (C) Copyright 1985,1986,1987,1988,1989,1990 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.  
  15.     IFND EXEC_TYPES_I
  16.     INCLUDE "exec/types.i"
  17.     ENDC
  18.  
  19.     IFND INTUITION_INTUITION_I
  20.     INCLUDE "intuition/intuition.i"
  21.     ENDC
  22.  
  23. ; ========================================================================
  24. ; === Gadget Info =========================================================
  25. ; ========================================================================
  26.  
  27. ; Package of information passed to custom and 'boopsi'
  28. ; gadget "hook" functions.  This structure is READ ONLY.
  29.  
  30.  STRUCTURE GadgetInfo,0
  31. ;    APTR ggi_Gadget
  32.  
  33.     APTR ggi_Screen
  34.     APTR ggi_Window     ; null for screen gadgets
  35.     APTR ggi_Requester     ; null if not GTYP_REQGADGET
  36.  
  37.     ; rendering information:
  38.     ; don't use these without cloning/locking.
  39.     ; Official way is to call ObtainRPort()
  40.     APTR ggi_RastPort
  41.     APTR ggi_Layer
  42.  
  43.     ; copy of dimensions of screen/window/g00/req/group
  44.     ; that gadget resides in.  Left/Top of this box is
  45.     ; offset from window mouse coordinates to gadget coordinates
  46.     ;     screen gadgets:            0,0 (from screen coords)
  47.     ;    window gadgets (no g00):      0,0
  48.     ;  GZZGADGETs (borderlayer):     0,0
  49.     ;  GZZ innerlayer gadget:      borderleft, bordertop
  50.     ;  Requester gadgets:         reqleft, reqtop
  51.     STRUCT     ggi_Domain,ibox_SIZEOF
  52.  
  53.     ; these are the pens for the window or screen
  54.     STRUCT    ggi_Pens,2    ; detail and block pen UBYTE's
  55.  
  56.     ; the Detail and Block pens in ggi_DrInfo->dri_Pens[] are
  57.     ; for the screen. Use the above for window-sensitive
  58.     ; colors.
  59.     APTR ggi_DrInfo
  60.  
  61.     ; the size of this struct is not defined, since it is allocated
  62.     ; ONLY by Intuition.
  63.     ;     LABEL ggi_SIZEOF
  64.  
  65.  
  66.     ENDC
  67.